import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class usermessage {
  usermessage({
    this.name,
    this.Idcard,
    this.socialcard,
    this.date,
    this.imgUrl,
  });
  final String name;
  final String Idcard;
  final String socialcard;
  final String date;
  final String imgUrl;
  usermessage.fromJson(Map json):
        name=json["name"]
  ,Idcard=json["Idcard"]
  ,socialcard=json["socialcard"]
  ,date=json["date"],
  imgUrl=json["imgUrl"];
  Map toJson()=>{"name":name,"Idcard":Idcard,"socialcard":socialcard,"date":date};
  bool selected = false;
}

class userinformation {
  userinformation({
    this.name,
    this.Idcard,
    this.socialcard,
    this.date,
    this.imgUrl,
  });
  final String name;
  final String Idcard;
  final String socialcard;
  final String date;
  final String imgUrl;
  userinformation.fromJson(Map json):
        name=json["name"]
  ,Idcard=json["Idcard"]
  ,socialcard=json["socialcard"]
  ,date=json["date"],
        imgUrl=json["imgUrl"];
  Map toJson()=>{"name":name,"Idcard":Idcard,"socialcard":socialcard,"date":date};
  bool selected = false;
}


class userinformations {
  userinformations({
    this.index,
    this.title,
    this.Url,
    this.color,
    this.imgUrl
  });
  final int index;
  final String title;
  final String Url;
  final Color color;
  final imgUrl;
  userinformations.fromJson(Map json):
        title=json["title"]
       ,Url=json["Url"]
       ,color=json["color"],
        index=json["index"],
        imgUrl=json["imgUrl"];

  Map toJson()=>{"title":title,"Url":Url,"color":color};
  bool selected = false;
}


List<userinformations> medicalmessagelist=
[
  new userinformations(index:0,title: "我的积分",Url: "https://www.dzsbk.cn/smartDemo/page/user/jzzjfcx_01.html",imgUrl: 'http://106.12.180.103/smartDemo/images/my-me-ico1.png'),
  new userinformations(index:1,title: "我的账户",Url: "https://www.dzsbk.cn/smartDemo/page/user/wdzh_01.html",imgUrl: 'http://106.12.180.103/smartDemo/images/my-me-ico2.png'),
  new userinformations(index:2,title: "我的社保卡",Url: "https://www.dzsbk.cn/smartDemo/page/main/dzsbk_xq_06.html",imgUrl: 'http://106.12.180.103/smartDemo/images/my-me-ico3.png'),
  new userinformations(index:3,title: "我的用卡轨迹",Url: "https://www.dzsbk.cn/smartDemo/page/main/ykdt_01.html",imgUrl: 'http://106.12.180.103/smartDemo/images/my-me-ico4.png'),
  new userinformations(index:4,title: "我的个人信息",Url: "https://www.dzsbk.cn/smartDemo/page/user/wdgrxx_01.html",imgUrl: 'http://106.12.180.103/smartDemo/images/my-me-ico5.png'),
  new userinformations(index:5,title: "我的权益记录",Url: "https://www.dzsbk.cn/smartDemo/page/main/grqyd_01.html",imgUrl: 'http://106.12.180.103/smartDemo/images/my-me-ico6.png'),
  new userinformations(index:6,title: "我的电子档案袋",Url: "https://www.dzsbk.cn/smartDemo/page/user/wddzdad_01.html",imgUrl: 'http://106.12.180.103/smartDemo/images/my-me-ico7.png'),
  new userinformations(index:7,title: "我的电子对账单",Url: "https://www.dzsbk.cn/smartDemo/page/user/wddzdzd_01.html",imgUrl: 'http://106.12.180.103/smartDemo/images/my-me-ico8.png'),
  new userinformations(index:8,title: "我的个人信用",Url: "https://www.dzsbk.cn/smartDemo/page/user/wdgrxy_01.html",imgUrl: 'http://106.12.180.103/smartDemo/images/my-me-ico9.png'),
  new userinformations(index:9,title: "退出登录", Url: "",imgUrl: 'http://106.12.180.103/smartDemo/images/my_tc.jpg'),
];